package com.lxq.www.controller;

import com.lxq.www.pojo.OrdinaryFile;
import com.lxq.www.service.OrdinaryFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class OrdinaryFileController {
    @Autowired
    OrdinaryFileService ordinaryFileService;

    @GetMapping("/ordinary/files")
    public List<OrdinaryFile> getFiles(){
        return ordinaryFileService.getFiles();
    }
}
